home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / amsmnu15.zip / PCLOGIN.BAT < prev    next >
DOS Batch File  |  1992-10-01  |  2KB  |  49 lines

  1. Echo On
  2. : Remove this REM when everything is working OK.
  3. REM @Echo Off
  4.  
  5. : To help in the configuration of this file, we suggest you list it to the
  6. : printer, use        COPY  PCLOGIN.BAT  LPT1
  7.  
  8. : This is a sample batch file for use with Netware Lite. It is intended for use
  9. : by people unfamiliar with networking, and for those attempting to 
  10. : establish a single main FileServer network, although the concepts may also be
  11. : useful to more experienced networkers.
  12.  
  13. : You should copy this batch file to each computer attaching to 
  14. : the network. This file is designed to run in conjunction with the file
  15. : LITLOGIN.BAT
  16.  
  17. : This file should be called at the end of each Client's AUTOEXEC.BAT file.
  18. : [Assuming you want each Client to automatically attach to the network when
  19. : they switch on]. To do this, copy this file to the \NWLITE directory of 
  20. : each client, and add to the end of AUTOEXEC.BAT,    PCLOGIN
  21. : You should also add the PCLOGIN command to the end of the server's 
  22. : AUTOEXEC.BAT file.
  23.  
  24. : This command call's Novell's batch file to start the network.
  25. CALL STARTNET
  26.  
  27. : Now ask someone to Login
  28. :LOGINAUSER
  29. CLS
  30. NET LOGIN
  31.  
  32. : Now map the L: drive to the drive on the Server with the Public directory.
  33. : You may need to change CDRIVE to a different network directory.
  34. NET MAP L: CDRIVE
  35.  
  36. : If you see an error at this point, you probably need to set LASTDRIVE=M in
  37. : your CONFIG.SYS file. See your DOS manual for more information.
  38.  
  39. : Now change drive L: to the public directory and run the common login batch
  40. : file. You may need to change \PUBLIC if your public directory is called 
  41. : something else. [See Quick Start For Netware Lite Users for more information]
  42. L:
  43. CD \PUBLIC
  44. LITLOGIN
  45.  
  46. : This last part of the program checks that the login was successful, and if 
  47. : not takes the user back to login again. Ensure the file LITLOGIN.BAT is not 
  48. : on the client PC for this to work.
  49. If not exist LITLOGIN.BAT goto LOGINAUSER